<?php require("inc/common.inc.php");
$web_title="微名片";
$id=intval($id);
if($id==""){
    $fun->popmassage("非法操作，系统将自动返回上一页!","","popback");
    exit();
}
  $sqlsel="select *  from mx_vpp_card where id='$id' and isok='1' limit 1";
  $newsdb=$db->getinfo($sqlsel);
  if (!is_array($newsdb)){
    $fun->popmassage("非法操作，系统将自动返回上一页!","","popback");
    exit();
  }
  $db->excu("update mx_vpp_card set hits=hits+1 where id='$id' and isok='1' ");
  $web_title=$newsdb["yname"]."的微名片";
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1" name="viewport">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php echo $newsdb["yname"];?>的微名片</title>
<meta name="searchtitle" content="<?php echo $web_title2.$webdb['metakeywords'];?>">
<meta name="description" content="<?php echo $web_title2.$webdb['webdsc'];?>">
<meta name="keywords" content="<?php echo $web_title2.$webdb['metakeywords'];?>">
<script src="js/jquery_min.js" type="text/javascript"></script>
<link href="images/fall.css" rel="stylesheet" type="text/css" />
<link href="images/jquery.mobile.css" rel="stylesheet" type="text/css" />
<link href="images/Jobs_Mobile.css" rel="stylesheet" type="text/css" />
<link href="images/style.css" rel="stylesheet" type="text/css" />
</head>
<body style="background:#fff;">
<?php
$head_hide=1;
require("w_head.php");
?>
    <div data-theme="b" data-role="header" class="ui-header ui-bar-b" role="banner">
        <h3 class="ui-title" role="heading" aria-level="1"><?php echo $newsdb["yname"];?>的微名片</h3>
    </div>
    <div data-role="content" class="ui-content" role="main">
        <div class="carddetail drop-shadow raised">
                <span class="company" style=" width:100%; display:block;text-align:center;"><?php echo $webdb["vpp_jigoucode"];?></span>
				<div class="clear"></div>
                <div style="height:85px;">
                  <span style="float:left;"><img src="<?php echo get_photourl($newsdb["faceurl"]);?>" style=" vertical-align:top; padding-right:10px; width:90px; height:110px"></span>  
                  <ul>
                     <li class="wusername"><?php echo $newsdb["yname"];?></li>
                     <li class="wuserpost" style="margin-top:10px;">部门：<?php echo $newsdb["bumen"];?></li>
                     <li class="mobile">电话：<?php echo $newsdb["tel"];?><a href="tel:<?php echo $newsdb["tel"];?>"><img src="images/phone.png" class="cardimg"></a></li>
					 <li><span class="hot_count">点击次数：<?php echo $newsdb["hits"];?>次</span></li>
                   </ul>
                </div>
                <ul>
                   <li class="work">
                     <li><em class="yewu">公司名称：</em><span style="padding-left:20px;">济南铭讯软件公司</span></li>
                     <li><em class="mobile">手机：</em>
					 <?php
					 if (trim($_COOKIE["mxadminwx"]["wxmxopenid"])!=""){
					 ?>
					 
					<a href="tel:<?php echo $newsdb["mobile"];?>"> <?php echo $newsdb["mobile"];?></a><a href="tel:<?php echo $newsdb["mobile"];?>"><img src="images/moble.png" class="cardimg"></a><a href="sms:<?php echo $newsdb["mobile"];?>" ><img src="images/msn.png" class="cardimg" style="margin-left:15px;"></a>
					 <?php }else{echo '<span style="color:#FF0000">点击关注后显示手机号码</span>';}?>
					 </li>
                    	<li><em class="email">邮箱：</em><a href="mailto:<?php echo $newsdb["email"];?>" class="ui-link"><?php echo $newsdb["email"];?></a></li>
                        <li><em class="address">地址：</em><?php echo $webdb["vpp_address"];?><a href="http://map.baidu.com/mobile/webapp/search/search/qt=inf&uid=2b6563f6eaacd423260bd00f/vt=map?dgr=2&third_party=aladdin#search/search/qt=inf&uid=2b6563f6eaacd423260bd00f&searchFlag=aladdin&c=288/vt=map&i=0&from=singlemessage&isappinstalled=0"><img src="images/map.png" class="cardimg"></a></li>
                        
                        <li><em class="weixin">微信号：</em><span style="padding-left:10px;"><?php echo $newsdb["weixin"];?></span></li>
                      
                        <li><em class="yewu">QQ号：</em><span style="padding-left:10px;"><?php echo $newsdb["qq"];?></span></li>
                      
                        <li><em class="address">公司网址：</em><span style="padding-left:20px;"><a href="<?php echo $newsdb["homepage"];?>" class="ui-link"><?php echo $newsdb["homepage"];?></a></span></li>
                        <li><em class="yewu">个人宣言：</em><span style="padding-left:25px;"><?php echo $newsdb["jieshao"];?></span></li>
                      
                    <li><em class="mycode">我&nbsp;&nbsp;&nbsp;&nbsp;的<br>二维码</em><span style="padding-left:20px;"><?php
					get_erweima($WEBURL,160)
					?></span></li>
                </ul>
        </div>
	<div id="shareCover2" class="share" onClick="document.getElementById('shareCover2').style.display='none';">
		<table style="width:120px;">
			<tr>
				<td colspan="2"  style="text-align:right;">
					<img src="js/images/share_1.png" style="width:120px!important;" />
					<img src="js/images/share_2.png" style="width:30px!important;" />
				</td>
			</tr>
			<tr>
				<td style="width:50%;">
					<img src="js/images/share_5.png" />
					<div>关注官方账号</div>
				</td>
			</tr>
		</table>
	</div>
           
		    <a data-role="button" data-theme="b" href="javascript:void(0)" id="followbtn" data-corners="true" data-shadow="true" data-iconshadow="true" data-iconsize="18" data-wrapperels="span" class="ui-btn ui-btn-up-b ui-shadow ui-btn-corner-all" onClick="document.getElementById('shareCover2').style.display='block';"><span class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-text">立即关注我</span></span></a>
            <a data-role="button" data-theme="c" data-ajax="false" href="javascript:void(0)" data-corners="true" data-shadow="true" data-iconshadow="true" data-iconsize="18" data-wrapperels="span" class="ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all"  onClick="document.getElementById('mcover').style.display='block';"><span class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-text">收藏此名片</span></span></a>    
            <a data-role="button" data-theme="c" data-ajax="false" href="card.php" data-corners="true" data-shadow="true" data-iconshadow="true" data-iconsize="18" data-wrapperels="span" class="ui-btn ui-btn-up-c ui-shadow ui-btn-corner-all"><span class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-text">返回微名片</span></span></a>    
			<div class="clear"></div>
    </div>
			<div class="clear"></div>


<div class="foot_f">
<?php
$fenxiang_jshide=1;
require("w_copyright.php");
?>
</div>
<script type="text/javascript">
		document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        window.shareData = {  
           "imgUrl": "<?php if (trim($newsdb[faceurl])!=""){echo get_photourl($newsdb[faceurl]);}?>", 
            "timeLineLink": "<?php echo $WEBURL;?>",
            "sendFriendLink": "<?php echo $WEBURL;?>",
            "weiboLink": "<?php echo $WEBURL;?>",
            "tTitle": "<?php echo $web_title?>",
            "tContent": "<?php echo $webdb["vpp_jigoucode"]."—".$web_title?>",
            "fTitle": "<?php echo $web_title?>",
            "fContent": "<?php echo $webdb["vpp_jigoucode"]."—".$web_title?>",
            "wContent": "<?php echo $webdb["vpp_jigoucode"]."—".$web_title?>" 
        };
        // 发送给好友
        WeixinJSBridge.on('menu:share:appmessage', function (argv) {
            WeixinJSBridge.invoke('sendAppMessage', { 
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.sendFriendLink,
                "desc": window.shareData.fContent,
                "title": window.shareData.fTitle
            }, function (res) {
                _report('send_msg', res.err_msg);
            })
        });

        // 分享到朋友圈
        WeixinJSBridge.on('menu:share:timeline', function (argv) {
            WeixinJSBridge.invoke('shareTimeline', {
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.timeLineLink,
                "desc": window.shareData.tContent,
                "title": window.shareData.tTitle
            }, function (res) {
                _report('timeline', res.err_msg);
            });
        });

        // 分享到微博
        WeixinJSBridge.on('menu:share:weibo', function (argv) {
            WeixinJSBridge.invoke('shareWeibo', {
                "content": window.shareData.wContent,
                "url": window.shareData.weiboLink,
            }, function (res) {
                _report('weibo', res.err_msg);
            });
        });
        }, false)
</script>

</body>
</html>